<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单独收费标准管理</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
  <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
    <tr>
      <td class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">
      	单独物业收费标准列表
      		<span style="text-align:right">
				<a href="singleChargeCriterion.do?method=add">增加单独收费标准</a>
			</span>
      </td>
    </tr>
    <tr>
      <td colspan="2" align="center" bgcolor="#ffffff">
      <table width="100%" border="0">
        <tr align="center">
          <td width="10%" height="25">编号</td>
          <td width="15%" height="25">房产编号</td>	
          <td width="15%" height="25">业主姓名</td>
          <td width="15%" height="25">所属小区</td>
          <td width="10%">金额</td>
          <td width="15%">收费项目</td>
          <td>操作</td>
        </tr>
		<c:if test="${!empty pm.datas}">
		<c:forEach items="${pm.datas  }" var="criterion"> 
        <tr align="center">
          <td height="25">${criterion.id }</td>
          <td>${criterion.house.houseId }</td>
          <td>${criterion.house.owner.name }</td>
          <td>${criterion.subDistrict.name }</td>
          <td>${criterion.amount }</td>
          <td>${criterion.chargeItem.name }</td>
          <td><a href="singleChargeCriterion.do?method=update&id=${criterion.id }">编辑</a>&nbsp;<a href="singleChargeCriterion.do?method=delete&id=${criterion.id }">删除</a></td>
        </tr>
        </c:forEach>
        </c:if>
      </table>
<pg:pager url="singleChargeCriterion.do" items="${pm.total }" export="currentPageNumber=pageNumber">
	<pg:first>
		<a href="${pageUrl }">首页</a>

	</pg:first>
	<pg:prev>
		<a href="${pageUrl }">上一页</a>
	</pg:prev>
	<pg:pages>
		<c:choose>
			<c:when test="${currentPageNumber eq pageNumber}">
				<font color="red">${pageNumber }</font>
			</c:when>
			<c:otherwise>
				<a href="${pageUrl }">${pageNumber }</a>
			</c:otherwise>
		</c:choose>
	</pg:pages>
	<pg:next>
		<a href="${pageUrl }">下一页</a>
	</pg:next>
	<pg:last>
		<a href="${pageUrl }">尾页</a>
	</pg:last>
</pg:pager>      
      
      </td>
    </tr>
  </table>
</body>
</html>